<template>
		 
	 
	 <view class="common-list u-f">
		 <!-- 左边 -->
	 	<view class="common-list-l">
	 		<image :src="item.userpic" mode="widthFix" lazy-load></image>
	 	</view>
		<!-- 右边 -->
		<view class="common-list-r">
			<view class="u-f-ac u-f-jsb">
				<view class="u-f-ac">{{item.username}}<view class="tag-sex icon iconfont" :class="[item.sex==0?'icon-nan':'icon-nv']">{{item.age}}</view></view>
				<view class="icon iconfont icon-zengjia" v-show="!isguanzhu" @tap="guanzhu">关注</view>
			</view>
			<view class="2">{{item.title}}</view>
			<view class="u-f-ajc">
				<!-- 图片 -->
				<image v-if="item.titlepic" :src="item.titlepic" mode="widthFix" lazy-load ></image>
				<!-- 视频 -->
				<template v-if="item.video">
				<view class="common-list-play icon iconfont icon-bofang"></view>
				<view class="common-list-playinfo">
					  {{item.video.lonkNum}} 次播放 {{item.video.long}}
				</view>
				</template>
				
				<!-- 分享 -->
				<view class="common-list-share u-f-ac" v-if="item.share">
					<image :src="item.share.shareTitlePic" mode="widthFix" lazy-load></image>
					<view class="">{{item.share.shareTile}}</view>
				</view>
			</view>
			<view class="u-f-ac u-f-jsb">
				<view class="">{{item.path}}</view>
				<view class="u-f-ac">
					<view class="icon iconfont icon-fenxiang">{{item.shareNum}}</view>
					<view class="icon iconfont icon-pinglun">{{item.commetNum}}</view>
					<view class="icon iconfont icon-dianzan">{{item.zanNum}}</view>
				</view>
			</view>
		</view>
	 </view>
</template>

<script>
	export default{
		props:{
			item:Object,
			index:Number
		},
		data(){
			return{
				isguanzhu: this.item.isguanzhu
			}
		},
		methods:{
			guanzhu(){
				this.isguanzhu=true;
				uni.showToast({
					title:'关注成功'
				})
			}
		}
	}
</script>

<style scoped>
	.common-list-share{
		background: #EEEEEE;
		width: 100%;
		padding: 10upx;
		border-radius: 10upx;
	}
	.common-list-share>image{
		width: 200upx;
		height: 150upx;
		margin-right: 10upx;
	}
	.tag-sex{
		background: #007AFF;
		color: #FFFFFF;
		font-size: 23upx;
		padding: 5upx 10upx;
		margin-left: 10upx;
		border-radius: 20upx;
		line-height: 24upx;
	}
	.common-list-r>view:nth-child(3)>image{
		width: 100%;
		border-radius: 10upx;
	
	} 
	.common-list-r>view:nth-child(1)>view:first-child{
		color: #999999;
		font-size: 32upx;
		
	}
	.common-list-r>view:nth-child(1)>view:last-child{
		background-color: #EEEEEE;
		padding: 0 10upx;
		font-size: 26upx;
	}
	.common-list-r>view:nth-child(2){
		font-size: 32upx;
		padding: 12upx 0;
	}
	.common-list-r>view:nth-child(3){
		position: relative;
		margin-bottom: 10upx;
	}
	.common-list-play,.common-list-playinfo{
		position: absolute;
		color: #FFFFFF;
	}
	.common-list-play{
		font-size: 130upx;
		
		
	}
	.common-list-playinfo{
		right: 10upx;
		bottom: 10upx;
		background: rgba(51,51,51,0.73);
		border-radius: 20upx;
		padding: 0 20upx;
		font-size: 26upx;
	}
	.common-list-r>view:nth-child(4)>view{
		color: #AAAAAA;
	}
	.common-list-r>view:nth-child(4)>view:nth-child(2)>view{
		margin-left: 10upx;
		padding-left: 5upx;
		font-size: 28upx;
	}
	.common-list-r{
		flex: 1;
		margin-left: 15upx;
		border-bottom: 1upx solid #EEEEEE;
		padding-bottom: 10upx;
	}
	.common-list{
		padding: 20upx;
	}
	.common-list-l{
		flex-shrink: 0;
	}
	.common-list-l image{
		width: 90upx;
		height: 90upx;
		border-radius: 100%;
	}
</style>
